<%@ page import="model.User" %><%--
  Created by IntelliJ IDEA.
  User: hp
  Date: 2025/11/7
  Time: 20:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>仪表盘</title>
    <link rel="stylesheet" href="<%= request.getContextPath() %>/css/style.css">
</head>
<body>
<div class="navbar">
    <div class="logo">员工信息管理系统</div>
    <div class="user-info">
        <%
            User loginUser = (User) session.getAttribute("loginUser");
            String username = loginUser != null ? loginUser.getUsername() : "";
        %>
        欢迎您，<%= username %> |
        <a href="<%= request.getContextPath() %>/LogoutServlet">退出登录</a>
    </div>
</div>
<div class="container">
    <div class="sidebar">
        <ul>
            <li><a href="<%= request.getContextPath() %>/DashboardServlet">仪表盘</a></li>
            <li><a href="<%= request.getContextPath() %>/EmployeeServlet?action=list">员工管理</a></li>
        </ul>
    </div>
    <div class="content">
        <h3>系统概览</h3>
        <div class="card">
            <p>欢迎使用员工信息管理系统</p>
            <p>您可以通过左侧菜单进行员工信息的管理操作</p>
        </div>
    </div>
</div>
</body>
</html>